<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head><title>span merging tests</title></head>

<p>
<span><span id="id1">1</span></span>
</p>

<p>
<span id="id2_1">
<span id="id2_2">
2
</span>
</span>
</p>

<p>
<span title="span1">
<span title="span2">
3
</span>
</span>
</p>

<p>
<span title="span1" class="cl1">
<span title="span2" class="cl2">
4
</span>
</span>
</p>

<p>
<span title="span1" onclick="g()">
<span title="span2" onclick="f()" id="id5">
5
</span>
</span>
</p>

<p>
<span title="span1" onclick="g()">
<span>
<span title="span2" onclick="f()" id="id6">
6
</span>
</span>
</span>
</p>

</body>
</html>
